#pragma once
#include "BaseSample.h"

class CBinarySample :
	public CBaseSample
{
public:
	void * SetPayload(void *pPayload, unsigned int nLen);
	int GetPayload(void *& pPayload);

public:
	CBinarySample();
	CBinarySample::CBinarySample(int nInitSize);
	~CBinarySample();

public:
	CBaseSample * CreateInstance();

private:
	void Reset();

private:
	int m_nInitSize;
	void *m_pBuffer;
	int m_nBufferSize;
	int m_nDataLen;
};

